//
//  TempViewController.swift
//  微博三天
//
//  Created by jessica on 15/11/16.
//  Copyright © 2015年 jessica. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        //啥意思呢? navigationController
self.title = "\(navigationController?.childViewControllers.count)WoW!!"
        view.backgroundColor = UIColor.randomColor()
        
    }

    override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
      
        let tempViewController = TempViewController()
        navigationController?.pushViewController(tempViewController, animated: true)
    }
    @objc private func back(){
    
    navigationController?.popViewControllerAnimated(true)
    
    }

}
